//
//  ViewController.m
//  DFForum
//
//  Created by lanou on 15/10/23.
//  Copyright © 2015年 lanou. All rights reserved.
//
#define kScreenWidth [UIScreen mainScreen].bounds.size.width
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#import "ViewController.h"
#import "DFForumController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
    [btn setTitle:@"论坛界面" forState:UIControlStateNormal];
    btn.frame = CGRectMake(0, 0, kScreenWidth, 64);
    [self.view addSubview:btn];
    
    [btn addTarget:self action:@selector(gomain:) forControlEvents:UIControlEventTouchUpInside];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)gomain:(UIButton *)sender
{
    DFForumController *forumVC = [[DFForumController alloc]init];
    [self presentViewController:forumVC animated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
